<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .current{
            color: red;
            background-color: blue;
        }
    </style>
</head>
<body>
    <ul id="list">
        <li>前端开发</li>
        <li>服务器端开放</li>
        <li>UI设计</li>
        <li>UT设计</li>
    </ul>
    <p id="text"  data-type="title">文本</p>
    <!-- <script>
        var lis =document.getElementById("list").getElementsByTagName("li")
        for(var i = 0;i<lis.length;i++){
           lis[i].innerHTML +="程序"
           lis[i].className="current"
        }
    </script> -->
</body>
</html>